package com.sservice.commonBusiness.type1;

import java.util.HashMap;
import java.util.Map;

public enum DataR_TYPE {
    TYPE_SHOP_BANNER(307, "商品图"),
    TYPE_1(300, "菜单"),
    TYPE_GROUP_BUY(301, "拼团"),
    TYPE_COMMISSION_WITHDRAW(303, "佣金提现"),
    TYPE_PAY_DETAIL(304, "支付明细"),
    TYPE_GIFT(305, "礼品卡"),
    TYPE_COUPON(306, "优惠卡");
    private String label;
    private Integer value;

    DataR_TYPE(int value, String label) {
        this.label = label;
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static Map toMap() {
        Map map = new HashMap();
        DataR_TYPE[] values = DataR_TYPE.values();
        for (DataR_TYPE type : values) {
            map.put(type,
                    DataR_TYPE.valueOf(type + "").getValue() + ":" + DataR_TYPE.valueOf(type + "").getLabel()
            );
        }
        return map;
    }
}
